www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Admin_Txt_Template.asp

    <html>
<head>
<META content=ywnt,云网互动影视管理系统 name=keywords>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>云网互动影视6.0--模版管理</title>
<LINK href="css/css.css" type=text/css rel=stylesheet>
</head>
<BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0">
<script language="JavaScript" type="text/javascript" src="YWNT_TMS_inc/YWNT_TMS_TextEdit.js"></script>
<!--#include file="../Conn.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" -->
<%
'===================================================================================================================
'软件名称:云网影视管理系统
'Copyright (C) 2002-2007 ywnt.net  All rights reserved.
'产品咨询QQ:489234,2813712
'程序版权:云网互动科技有限公司
'程序开发:云网互动科技有限公司
'官方网站:http://www.ywnt.net 
'郑重声明:
'    1、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    3、云网互动科技有限公司保留此软件的法律追究权利
'===================================================================================================================
Call CheckLogin("Template")
Action=Trim(request("Action"))
Select Case Action
Case "Add"
	call Add()
Case "Edit"
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_Template where ID="&NoSqlHack(Request.QueryString("ID"))
		Rs.open sql,Conn,1,1
		YWNT_TMS_ID=RS("ID")
		YWNT_TMS_TemplateName=RS("TemplateName")
		YWNT_TMS_StyleID=RS("StyleID")
		YWNT_TMS_CssID=RS("CssID")
		YWNT_TMS_TemplateType=RS("TemplateType")
		YWNT_TMS_Template=RS("Template")
		RS.close   
      	set RS=nothing
	call Edit()
Case "Lebelingadd"
	call Lebelingadd()
Case "Lebelingedit"
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_ZyLab where ID="&NoSqlHack(Request.QueryString("ID"))
		Rs.open sql,Conn,1,1
		YWNT_TMS_ID=RS("ID")
		YWNT_TMS_LabNamee=RS("LabName")
		YWNT_TMS_LabNote=RS("LabNote")
		YWNT_TMS_LabContent=RS("LabContent")
		RS.close   
      	set RS=nothing
	call Lebelingedit()
End Select
sub Add()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>添加模版</td>
    </tr>
  <form name="form" action="Admin_Template.asp?Action=AddSave" method="post">
    <tr>
      <td height=32 align="right" class="hback">模版名称:</td>
      <td height=7 class="hback"><input name="TemplateName" type="text" id="TemplateName" size="40"></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">所属风格:</td>
      <td height=7 class="hback"><% call StyleSelect("StyleID","") %></td>
    </tr>
	 <tr>
      <td height=32 align="right" class="hback">所属CSS:</td>
      <td height=7 class="hback"><% call CssSelect("CssID","") %></td>
    </tr>
    <tr>
      <td width="21%" height=32 align="right" class="hback">模版类型:</td>
      <td height=7 class="hback"><select name="TemplateType" id="TemplateType">
        <option value="1">首页模版</option>
        <option value="2">栏目模版</option>
        <option value="3">列表模版</option>
        <option value="4">内容模版</option>
        <option value="5">专题模版</option>
		<option value="6">搜索模版</option>
		<option value="7">免费试看模版</option>
		<option value="8">全部影片模版</option>
            </select></td>
    </tr>
    <tr align="center">
<td height=32 colspan="2" class="hback">
<script language="javascript">
document.write("<table width=100% cellpadding=0 cellspacing=0 style=\"padding:1px;border:#cfcfcf 1px solid;background:url('../Editor/icons/bg.gif')\"><tr><td dir=ltr>"+
			sHTMLIcons+
			"</td></tr></table>")
</script>
</td></tr>
     <tr><td height=32 colspan="2" class="hback">
	  <textarea name="Content" style="width:100%; height:400px; "></textarea></td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input type="button" name="Submit" value="添 加" onClick="SubmitTemplate();"></td>
    </tr>
  </form>
  </tbody>
</table>
<%end sub
sub Edit()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>修改模版</td>
    </tr>
  <form name="form" action="Admin_Template.asp?Action=EditSave" method="post">
    <tr>
      <td height=32 align="right" class="hback">模版名称:</td>
      <td height=7 class="hback"><input name="TemplateName" type="text" id="TemplateName" value="<%=YWNT_TMS_TemplateName%>" size="40"></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">所属风格:</td>
      <td height=7 class="hback"><% call StyleSelect("StyleID",YWNT_TMS_StyleID) %></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">所属CSS:</td>
      <td height=7 class="hback"><% call CssSelect("CssID",YWNT_TMS_CssID) %></td>
    </tr>
    <tr>
      <td width="21%" height=32 align="right" class="hback">模版类型:</td>
      <td height=7 class="hback"><select name="TemplateType" id="TemplateType">
        <option value="1" <%if YWNT_TMS_TemplateType=1 then Response.Write("selected")%>>首页模版</option>
        <option value="2" <%if YWNT_TMS_TemplateType=2 then Response.Write("selected")%>>栏目模版</option>
        <option value="3" <%if YWNT_TMS_TemplateType=3 then Response.Write("selected")%>>列表模版</option>
        <option value="4" <%if YWNT_TMS_TemplateType=4 then Response.Write("selected")%>>内容模版</option>
        <option value="5" <%if YWNT_TMS_TemplateType=5 then Response.Write("selected")%>>专题模版</option>
		<option value="6" <%if YWNT_TMS_TemplateType=6 then Response.Write("selected")%>>搜索模版</option>
        <option value="7" <%if YWNT_TMS_TemplateType=7 then Response.Write("selected")%>>免费试看模版</option>
		<option value="8" <%if YWNT_TMS_TemplateType=8 then Response.Write("selected")%>>全部影片模版</option>
      </select></td>
    </tr>
    <tr align="center">
      <td height=32 colspan="2" class="hback">
<script language="javascript">
document.write("<table width=100% cellpadding=0 cellspacing=0 style=\"padding:1px;border:#cfcfcf 1px solid;background:url('../Editor/icons/bg.gif')\"><tr><td dir=ltr>"+
			sHTMLIcons+
			"</td></tr></table>")
</script>
</td></tr>
<tr><td colspan="2" class="hback">
	  <textarea name="Content" style="width:100%; height:400px;"><%=YWNT_TMS_Template%></textarea></td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input name="ID" type="hidden" value="<%=YWNT_TMS_ID%>"><input type="button" name="Submit" value="修 改" onClick="SubmitTemplate();"></td>
    </tr>
  </form>
  </tbody>
</table>
<%end sub
sub Lebelingadd()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>添加自由标签</td>
    </tr>
	<form name="form" action="Admin_Labeling.asp?Action=AddSave" method="post">
    <tr>
      <td height=32 align="right" class="hback">标签名称:</td>
      <td height=7 class="hback"><input name="LabName" type="text" size="40">
      <span style="color:#ff0000;">自由标签名称不能重复</span></td>
    </tr>
    <tr>
      <td width="21%" height=32 align="right" class="hback">标签说明:</td>
      <td height=7 class="hback"><textarea name="LabNote" cols="50" rows="3"></textarea></td>
    </tr>
    <tr align="center">
	      <td height=32 colspan="2" class="hback">
<script language="javascript">
document.write("<table width=100% cellpadding=0 cellspacing=0 style=\"padding:1px;border:#cfcfcf 1px solid;background:url('../Editor/icons/bg.gif')\"><tr><td dir=ltr>"+
			sHTMLIcons+
			"</td></tr></table>")
</script>
</td></tr>
<tr>
      <td height=32 colspan="2" class="hback">
	<textarea name="Content" style="width:100%; height:400px;"></textarea></td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input type="button" name="Submit" value="添 加" onClick="SubmitLabeling();"></td>
    </tr>
	</form>
  </tbody>
</table>
<%end sub
sub Lebelingedit()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>修改自由标签</td>
    </tr>
	<form name="form" action="Admin_Labeling.asp?Action=EditSave" method="post">
    <tr>
      <td height=32 align="right" class="hback">标签名称:</td>
      <td height=7 class="hback"><input name="LabName" type="text" value="<%=YWNT_TMS_LabNamee%>" size="40" ReadOnly>
      </td>
    </tr>
    <tr>
      <td width="21%" height=32 align="right" class="hback">标签说明:</td>
      <td height=7 class="hback"><textarea name="LabNote" cols="50" rows="3"><%=YWNT_TMS_LabNote%></textarea></td>
    </tr>
    <tr align="center">
		      <td height=32 colspan="2" class="hback">
<script language="javascript">
document.write("<table width=100% cellpadding=0 cellspacing=0 style=\"padding:1px;border:#cfcfcf 1px solid;background:url('../Editor/icons/bg.gif')\"><tr><td dir=ltr>"+
			sHTMLIcons+
			"</td></tr></table>")
</script>
</td></tr>
<tr>
      <td height=32 colspan="2" class="hback">
	<textarea name="Content" style="width:100%; height:400px;"><%=YWNT_TMS_LabContent%></textarea></td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input name="id" type="hidden" value="<%=YWNT_TMS_ID%>"><input type="button" name="Submit" value="修 改" onClick="SubmitLabeling();"></td>
    </tr>
	</form>
  </tbody>
</table>
<%end sub
call connclose()%>
</BODY></HTML>